# coding: utf-8

"""
"""

from rest_framework import serializers
from users.models import UsersInformation, PersonalDetails


class UserInfSerializer(serializers.ModelSerializer):
    """
    添加用户 序列化器
    """

    class Meta:
        model = UsersInformation
        fields = [
            "user_id",
            "user_name",
            "password",
            "email",
            "phone_num",
            "roles",
            "vf_mail",
            "vf_phone",
            "registration_time",
        ]


class PersonalProfileSerializer(serializers.ModelSerializer):
    """
    新增用户个人详细信息/更改用户个人详细信息 序列化器
    """

    class Meta:
        model = PersonalDetails
        fields = "__all__"
